package com.king.mvpdemo.newfragment.model;

import com.king.mvpdemo.net.RetrofitClient;
import com.king.mvpdemo.newfragment.bean.ListBean;
import com.king.mvpdemo.newfragment.contract.NewsContract;

import io.reactivex.Flowable;

/**
 * @Author King
 * @Date 2019/8/8 14:40
 */
public class NewsModel implements NewsContract.Model {

    @Override
    public Flowable<ListBean> getDate(String type, String key) {
        return RetrofitClient.getApiService1().getDate(type,key);
    }
}
